package com.project2.service;

import com.project2.bean.PageBo;
import com.project2.bean.ResultVo;

import com.project2.bean.po.MarketUser;

import com.project2.bean.po.MarketFootprint;

import com.project2.bean.vo.WxGoodsDetailVo;
import com.project2.bean.vo.WxGoodsListVo;

import java.util.List;
import javax.servlet.http.HttpServletRequest;

/**
 * @author ：HsDsg
 * @date ：2022/8/14 20:42
 * @description：TODO
 */
public interface WxGoodsService {
    long goodsCount();

    ResultVo getRestsCategoryByCategoryId(Integer id);

    WxGoodsListVo getGoodsByCategoryId(Integer categoryId, Integer page, Integer limit);

    WxGoodsDetailVo getGoodsDetail(Integer id);

    WxGoodsListVo getRelatedGoods(Integer id);

    void addFootprintByGoodsIdAndUserId(Integer id, Integer userId);

    List<MarketFootprint> queryFootprintByGoodsIdAndUserIdAndDeleted(Integer id, Integer userId, Integer deleted);

    void deleteFootprintById(Integer id);

    WxGoodsListVo getGoodsByBrandId(Integer brandId, Integer page, Integer limit);

    WxGoodsListVo getGoodsByKeyword(String keyword, PageBo pageBo, MarketUser user);

    List<Integer> queryAllGoodsId();

//    CommonData<WxGoodsListVo> getGoodsBYCategoryId();
}
